package com.hinnotek.amoeba.ui.activity.old

import android.os.Bundle
import android.view.View
import com.lee.common.base.BaseActivity
import com.hinnotek.amoeba.R
import com.hinnotek.amoeba.databinding.ActivityMsgPackageChangeDetailBinding
import com.hinnotek.amoeba.utilities.IntentUtils


class MsgPackageChangeDetailActivity : BaseActivity<ActivityMsgPackageChangeDetailBinding>(),
    View.OnClickListener {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setLeftVisible(true)
        setTitle("套餐变更申请")

        setContentView(R.layout.activity_msg_package_change_detail)
    }

    override fun initVew() {
        bindingView.superButtonHistory.setOnClickListener(this)
        bindingView.superButtonReject.setOnClickListener(this)
        bindingView.superButtonAgree.setOnClickListener(this)
    }

    override fun setData() {
        val type = intent.getIntExtra("type", 0)
        if (type == 0) {
            bindingView.llMsgBtns.visibility = View.VISIBLE
        } else {
            bindingView.llMsgBtns.visibility = View.GONE
        }
    }

    override fun onClick(v: View) {
        when (v.id) {
            R.id.superButton_history -> IntentUtils.startActivity(mContext,
                MsgHistoryListActivity::class.java)
            R.id.superButton_reject -> { }
            R.id.superButton_agree -> { }
        }
    }
}